import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '../views/index.vue'
Vue.use(VueRouter)

  const routes = [
    /*{
      path: "/",
      name: "login",
      component: () => import("../views/login/login")
    },
    {
      path: '/',
      redirect: '/login'
    },*/
    {
      path: '/',
      name: 'index',
      component: index,
      children: [
        {
          path: "/addProject",
          name: "addProject",
          component: () => import("../views/project/addProject")
        },
        {
          path: "/CurriculumProvision",
          name: "CurriculumProvision",
          component: () => import("../views/project/CurriculumProvision")
        },
        {
          path: "/courseEvaluation",
          name: "courseEvaluation",
          component: () => import("../views/project/courseEvaluation")
        },
        {
          path: "/teacherLog",
          name: "teacherLog",
          component: () => import("../views/project/teacherLog")
        },
        {
          path: "/explorer",
          name: "explorer",
          component: () => import("../views/project/explorer")
        },
        {
          path: "/teacherTask",
          name: "teacherTask",
          component: () => import("../views/project/teacherTask")
        },
        {
          path: "/studentsUpload",
          name: "studentsUpload",
          component: () => import("../views/project/studentsUpload")
        },
        {
          path: "/teachingLearning",
          name: "teachingLearning",
          component: () => import("../views/project/teachingLearning")
        },
        {
          path: "/gradeManagement",
          name: "gradeManagement",
          component: () => import("../views/project/gradeManagement")
        },
        {
          path: "/totalScore",
          name: "totalScore",
          component: () => import("../views/project/totalScore")
        },
        {
          path: "/useRatio",
          name: "useRatio",
          component: () => import("../views/project/useRatio")
        },
        {
          path: "/TeachingStatements",
          name: "TeachingStatements",
          component: () => import("../views/project/TeachingStatements")
        },
        {
          path: "/deviceList",
          name: "deviceList",
          component: () => import("../views/project/deviceList")
        },
        {
          path: "/stadEval",
          name: "stadEval",
          component: () => import("../views/project/stadEval")
        },
        {
          path: "/teacherList",
          name: "teacherList",
          component: () => import("../views/project/teacherList")
        },
        {
          path: "/deviceStanment",
          name: "deviceStanment",
          component: () => import("../views/project/deviceStanment")
        }
      ]
    }
]

const router = new VueRouter({
  routes
})

export default router
